package com.thinkfit.jy.adapter;

import android.content.Context;
import android.net.wifi.p2p.WifiP2pDevice;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.thinkfit.jy.R;


public class PeerAdapter extends BaseQuickAdapter<WifiP2pDevice, BaseViewHolder> {

    Context mContext;
    public PeerAdapter(Context context) {
        super(R.layout.item_peer);
        mContext = context;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, WifiP2pDevice wifiP2pDevice) {
        helper.setText(R.id.tvName,wifiP2pDevice.deviceName);
    }
}
